{include file="header.html"}
<div id="rightTop">
    <ul class="subnav" style="margin-left:0px;">
        <li><a class="btn1" href="index.php?app=msg">{$lang.msglog}</a></li>
        <li><span>{$lang.user}</span></li>
        <li><a class="btn1" href="index.php?app=msg&act=add">{$lang.addmsg}</a></li>
        <li><a class="btn1" href="index.php?app=msg&act=send">{$lang.sendmsg}</a></li>
        <li><a class="btn1" href="index.php?app=msg&act=setting">{$lang.setting}</a></li>
    </ul>
</div>

<div class="mrightTop">
    <div class="fontl">
        <form method="get">
            <div class="left">
                <input name="app" type="hidden" value="msg" />
                <input name="act" type="hidden" value="user" />
                {$lang.username}:
                <input class="queryInput" type="text" name="user_name" value="{$query.user_name|escape}" />
                <input type="submit" class="formbtn" value="{$lang.query}" />
            </div>
        </form>
    </div>
    <div class="fontr">
        {include file=page.top.html}
    </div>
</div>

<div class="tdare">
    <table width="100%" cellspacing="0">

        <tr class="tatr1">
            <td width="50">id</td>
            <td width="200">{$lang.username}</td>
            <td width="200">{$lang.binding_mobile}</td>
            <td >{$lang.unlock_function}</td>
            <td width="80">{$lang.can_use_text}</td>
            <td width="80">{$lang.status}</td>
            <td width="160">{$lang.operation_manage}</td>
        </tr>

        <!--{foreach from=$user item=val key=key}-->
        <tr class="tatr2">
            <td><b>{$val.user_id}</b></td>
            <td>{$val.user_name}</td>
            <td>{$val.mobile}</td>
            <td>
                <!--{if $functions}-->
                {foreach from=$functions item=func}
				{if $val.$func}
                <label for="function_{$func}_{$val.user_id}">&nbsp;{$lang.$func}</label>&nbsp;&nbsp;
                {/if}
				{/foreach}
                <!--{/if}-->
            </td>
            <td>{$val.num}</td>
            <td>{$val.state}</td>
            <td>
                <a href="index.php?app=msg&act=add&user_id={$val.user_id}&user_name={$val.user_name}">{$lang.inc_msg}</a>|
                <a href="index.php?app=msg&act=drop_user&user_id={$val.user_id}">{$lang.del_msg_user}</a>
            </td>
        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
            <td colspan="5">{$lang.no_data}</td>
        </tr>
        <!--{/foreach}-->
    </table>
    <!--{if $user}-->
    <div id="dataFuncs">
        <div class="pageLinks">{include file=page.bottom.html}</div>
        <div class="clear"></div>
    </div>
    <!--{/if}-->
</div>
{include file="footer.html"}